package se.webbzon.boltzmann.editor.component.sequence.factory;

import se.webbzon.boltzmann.game.object.dialogue.DialogueBackground;
import se.webbzon.boltzmann.game.object.dialogue.layout.ItemDialogueLayout;
import se.webbzon.boltzmann.game.sequence.builder.AbstractSequenceRow;
import se.webbzon.boltzmann.game.sequence.builder.SequenceBuilder;
import se.webbzon.boltzmann.game.sequence.builder.dialogue.ItemDialogueRow;

public class ItemDialogueRowFactory extends AbstractSequenceRowFactory {
	
	// The layout used to create simple dialogue rows
	private final ItemDialogueLayout layout;

	/*============================================================
	Constructors
	============================================================*/
	
	public ItemDialogueRowFactory(ItemDialogueLayout layout) {
		super(ItemDialogueRow.name);
		this.layout = layout;
	}
	
	/*============================================================
	Constructors
	============================================================*/

	@Override public AbstractSequenceRow makeNew(SequenceBuilder builder) {
		return new ItemDialogueRow(	builder,
									layout,
									DialogueBackground.NORMAL,
									"Undefined text.");
	}

}
